import axios from 'axios'
import { ElMessage } from 'element-plus'
const service = axios.create({
    baseURL: '/api',
    // baseURL: 'http://linkhand.com/',
    timeout: 10000
})
service.interceptors.response.use(response => {
    return response.data ? response.data?.data : response.data
},
    error => {
        ElMessage.error(error.message)
        return Promise.reject(error)
    })
export default service